from django.conf.urls.defaults import *
from django.conf import settings
from django.contrib import admin

admin.autodiscover()

urlpatterns = patterns('',
    (r'^admin/inscricoes/palestra/(?P<palestraId>\d+?)/presenca/$', 'flisol_system.inscricoes.views.listaPresenca'),
    (r'^admin/contato/notificacao/$', 'flisol_system.contato.views.notificacao'),
    (r'^admin/(.*)', admin.site.root),
    (r'^media/(.*)$', 'django.views.static.serve',
        {'document_root': settings.MEDIA_ROOT}),
        
    
    (r'^(?P<res>\d+)/$', 'flisol_system.views.index'),
    (r'^$', 'flisol_system.views.index'),
    (r'^conteudo/(?P<pagina>.+?)$', 'flisol_system.conteudo.views.estatico'),
    (r'^post/(?P<post>\d+)/$', 'flisol_system.conteudo.views.post'),
    (r'^contato/$', 'flisol_system.contato.views.contato'),
    (r'^chamada/$', 'flisol_system.inscricoes.views.proposta'),
    (r'^inscricao/$', 'flisol_system.inscricoes.views.inscricao'),
    (r'^historico/palestras/(?P<ano>\d+)/$', 'flisol_system.inscricoes.views.histpalestras'),
    (r'^js/(?P<path>.*)$', 'django.views.static.serve', {'document_root': 'templates/js'}),
)
